
const pluginInfoDAO = require('../rdsService/pluginInfoDAO');


exports.getAllTrayPlugin = function () {
    return new Promise(function (resolve, reject) {
        pluginInfoDAO.getPluginInfoByCondition(null, null, null, (plugins) => {
            return resolve(plugins.filter(
                plugin => plugin.pluginInfo.pluginSetting.traySetting != undefined
            ))
        })
    })
}